package com.loong.seller.model;

import com.loong.common.mybatis.entity.BaseEntity;
import javax.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.math.BigDecimal;

@Builder
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "shop_delivery")
public class ShopDelivery extends BaseEntity {
    /**
     * 店铺id
     */
    @Column(name = "shop_id")
    private Long shopId;

    /**
     * 配送方式id
     */
    @Column(name = "delivery_id")
    private Long deliveryId;

    /**
     * 配送基础价格
     */
    @Column(name = "base_price")
    private BigDecimal basePrice;

    /**
     * 默认选择其中一个
     */
    @Column(name = "selected")
    private Boolean selected;
}